<!--
  描述：服务内容详情页
  @author fengxuecai
  @since 2021/11/17 14:19
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="common/common::jscss"/>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <form method="POST" action="" class="layui-form" lay-filter="zmn-form">
                <input type="hidden" name="servId" th:value="${serviceContent.servId}">
                <div class="layui-form-item">
                    <label style="color: #9F9F9F;"></label>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">服务内容：</label>
                    <div class="layui-input-inline" style="width:300px;">
                        <input type="text" name="servDesc" autocomplete="off" class="layui-input"
                               th:value="${serviceContent.servDesc}" maxlength="50" lay-verify="required|count">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">是否收费：</label>
                    <div class="layui-input-inline">
                        <input type="radio" name="servCharge" value="2" title="收费"
                               th:checked="${serviceContent.servCharge==null||serviceContent.servCharge == 2}">
                        <input type="radio" name="servCharge" value="1" title="免费"
                               th:checked="${serviceContent.servCharge== 1}">
                    </div>
                </div>

                <div class="layui-form-item">
                    <label class="layui-form-label">排序：</label>
                    <div class="layui-input-inline">
                        <input type="number" name="sort" autocomplete="off" class="layui-input"
                               th:value="${serviceContent.sort}" maxlength="10" lay-verify="sort">
                    </div>
                    <div>
                        <label style="color: #9F9F9F;width: 400px">排序值越小越靠前展示</label>
                    </div>
                </div>
                <div class="layui-split">&nbsp;</div>
                <div class="layui-form-item submit">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                        <button onclick="zmnLayUtil.closeThisIframe(parent,{reloadPage: true})"
                                class="layui-btn layui-btn-primary" id="cancel">取消
                        </button>
                    </div>
                </div>
            </form>
        </div>
    </div>

</div>
</body>
</html>

<script type="text/javascript" th:inline="javascript">
   var json = {
       serviceContent: [[${serviceContent}]]
    };
    layui.config({
        base: "/static/lay/",
        version: 21121323
    }).extend({
        index: "lib/index",
        plat_base_servicecontent_detail: "base/servicecontent/zmn.plat.servicecontent.edit",
    }).use(['index', 'plat_base_servicecontent_detail']);


</script>